package cn.zwy.实战;

import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

public class AOPAspect {

    /**
    * 前置通知
    * @title: before
    * @param params 
    * @Author: zhaoweiyong
    * @Date: 2017年11月17日上午11:38:21
    */
    public static void before(Map<String, Object> params) {
        Set<Entry<String, Object>> entrySet = params.entrySet();
        for (Entry<String, Object> entry : entrySet) {
            System.out.println(entry.getKey() + ":" + entry.getValue());
        }
    }

    /**
    * 后置通知
    * @title: after
    * @param params 
    * @Author: zhaoweiyong
    * @Date: 2017年11月17日上午11:38:37
    */
    public static void after(Map<String, Object> params) {
        Set<Entry<String, Object>> entrySet = params.entrySet();
        for (Entry<String, Object> entry : entrySet) {
            System.out.println(entry.getKey() + ":" + entry.getValue());
        }
    }
    
    public static void begin(){
        System.out.println("aop begin");
    };
    
    
    public static void end(){
        System.out.println("aop end");
    };
}
